import x from "./x.js";
import png from "./assets/1.png";
console.log(x);
console.log("hi");

const div = document.getElementById("app");

div.innerHTML = `
    <img src = "${png}">
`;

const button = document.createElement("button");
button.innerText = "懒加载";
button.onclick = () => {
  const lazy = import("./lazy.js");
  promise.then(
    (module) => {
      const fn = module.default;
      fn();
    },
    () => {
      console.log("模块加载失败");
    }
  );
};

div.appendChild(button);
